//
//  Loan_AddBankcardTableViewCell.m
//  JinFuThree
//
//  Created by 爱尚 on 2018/9/11.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "Loan_AddBankcardTableViewCell.h"

@implementation Loan_AddBankcardTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initialize];
    }
    return self;
}

-(void)initialize{
    _titleLabel = [[UILabel alloc]init];
    _titleLabel.text = @"添加银行卡";
    _titleLabel.font = [UIFont systemFontOfSize:15];
    _titleLabel.textColor = ThemeMaoBlackColor;
    [self addSubview:_titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_left).offset(20);
        make.centerY.mas_equalTo(self.mas_centerY);
        make.height.mas_offset(@16);
    }];
    
    UIButton *goBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [goBtn setImage:[UIImage imageNamed:@"con_go"] forState:UIControlStateNormal];
    [self addSubview:goBtn];
    [goBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(self.mas_right).offset(-20);
        make.centerY.mas_equalTo(self.mas_centerY);
        make.height.with.mas_offset(@22);
    }];
    
    UIView *line = [[UIView alloc]init];
    line.backgroundColor = ThemeMaoLineColor;
    [self addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_left).offset(16);
        make.right.mas_equalTo(self.mas_right).offset(-16);
        make.height.mas_offset(@0.5);
        make.bottom.mas_equalTo(self.mas_bottom);
    }];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
